import { pa } from 'element-plus/es/locale';

const right_route = {
  path: 'Right',
  name: 'Right1',
  meta: {
    title: '权限管理',
    icon: 'el-icon-lock',
    isReadonlyBreadcrumb: true,
  },
  children: [
    {
      path: 'Right',
      name: 'Right2',
      meta: {
        title: '权限',
        icon: 'el-icon-lock',
      },
      component: () => import('@/views/Right/Right.vue'),
    },
    {
      path: 'RightConfig',
      name: 'RightConfig1',
      meta: {
        title: '权限配置',
        icon: 'el-icon-lock',
      },
      children: [
        {
          path: '',
          name: 'RightConfig2',
          meta: {
            isHideBreadcrumb: true,
          },
          component: () => import('@/views/Right/RightConfig.vue'),
        },
        {
          path: 'edit',
          name: 'editRightConfig',
          meta: {
            title: '编辑权限配置',
            icon: 'el-icon-lock',
          },
          component: () =>
            import('@/views/Right/RightConfig/EditRightConfig.vue'),
        },
        {
          path: 'add',
          name: 'addRightConfig',
          meta: {
            title: '新增权限配置',
            icon: 'el-icon-lock',
          },
          component: () =>
            import('@/views/Right/RightConfig/AddRightConfig.vue'),
        },
      ],
    },
  ],
};

export default right_route;
